package edu.unr.cater.npap.client.managed.ui;

import com.google.web.bindery.requestfactory.gwt.ui.client.ProxyRenderer;
import edu.unr.cater.npap.client.proxy.DataAccessLogProxy;
import edu.unr.cater.npap.client.proxy.PlatformUserProxy;
import edu.unr.cater.npap.client.proxy.ProjectDataProxy;

public class DataAccessLogProxyRenderer extends ProxyRenderer<DataAccessLogProxy> {

    private static edu.unr.cater.npap.client.managed.ui.DataAccessLogProxyRenderer INSTANCE;

    protected DataAccessLogProxyRenderer() {
        super(new String[] { "accessDescription" });
    }

    public static edu.unr.cater.npap.client.managed.ui.DataAccessLogProxyRenderer instance() {
        if (INSTANCE == null) {
            INSTANCE = new DataAccessLogProxyRenderer();
        }
        return INSTANCE;
    }

    public String render(DataAccessLogProxy object) {
        if (object == null) {
            return "";
        }
        return object.getAccessDescription() + " (" + object.getAccessDescription() + ")";
    }
}
